package org.znxs.znxsojjudge.controller.inner;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.znxs.model.model.vo.QuestionSubmitVO;
import org.znxs.znxsojjudge.JudgeService;
import org.znxs.znxsojservice.services.JudgeFeignClient;

import javax.annotation.Resource;

@RestController
@RequestMapping("/inner")
public class JudgeFeignController implements JudgeFeignClient {


    @Resource
    private JudgeService judgeService;

    @Override
    public QuestionSubmitVO doJudge(Long questionSubmitId) {
        return judgeService.doJudge(questionSubmitId);
    }
}
